function [ X ] = UspatialMap( h , Lxt , Lxe , Lye , Lyt , NIut , NJut , NJue , NIue , dimU)
%SPATIALMAP Summary of this function goes here
%   Detailed explanation goes here

x = zeros (dimU,1);
y = zeros (dimU,1);
visited = zeros (dimU,1);
xStart = 0;
yStart = h/2;

for i=1:NIut
    for j=1:NJut
        
        if (i<=NIue && j>NJue) continue; end
        
        index = Umap (i,j);
        visited (index) = 1;
        
        x (index) = xStart + (i-1) * h; 
        y (index) = yStart + (j-1) * h;
        
    end
end

X = [x,y];
visited;
end

